from django.db import models
from hotels.models import Hotel
from guests.models import Guest

class Rating(models.Model):
	hotel = models.ForeignKey(Hotel)
	rating = models.IntegerField()
	guest = models.ForeignKey(Guest)
	comment = models.TextField()

	def __unicode__(self):
		return self.hotel.name
